package com.zmzncs.lmtc.module.customer.dao;

import com.zmzncs.lmtc.module.customer.pojo.card.CardPark;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zmzncs.lmtc.module.customer.pojo.card.CardParkDTO;
import com.zmzncs.lmtc.module.customer.pojo.customer.CustomerAccountDetails;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 客户-会员卡关联的停车场 Mapper 接口
 * </p>
 *
 * @author 任建波
 * @since 2020-09-02
 */
@Repository
public interface CardParkDao extends BaseMapper<CardPark> {

    /**获取客户车的可使用停车场*/
    List<CardParkDTO> getCustomerCarCardParkList(@Param("customerId") Long customerId, @Param("carId") Long carId,  @Param("cardTypeList") List<Integer> cardTypeList);

    /**查询用户账户详情*/
    List<CustomerAccountDetails> getCarAmount(Long customerId);

    /**根据cardId删除信息*/
    void deleteByCardId(Long cardId);
}
